<!DOCTYPE html>
<html>
<base>
<meta charset="utf-8"/>
<meta name="viewport"
      content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<title>登录页面</title>
<base/>
<script>
        function button(){
              window.location.href="file:///android_asset/html/register.html";
        }
        function chpic(){
               var img = document.getElementById("yanzhengma");
               //如果src包含round这个字符串
               if(img.src.match("round")){
                img.src = "file:///android_asset/images/ic_launcher.png";
               }else{
                img.src = "file:///android_asset/images/ic_launcher_round.png";
               }

        }
        //数字的验证方法
        function yanzheng(){
            var input=document.getElementById("usename").value;
            if(input==""){
            input.innerHTML = "admin";
            alert("账号不能为空");
            return;
            }if(isNaN(input)){
            alert("账号为数字");
            return;
            }
        }

        //提交的验证
        function send(){
            yanzheng();
            window.location.href="file:///android_asset/html/html.html";
        }


</script>

</head>

<body style="text-align:center; ">

<p>第二个页面</p>

<aside>
    <h5>侧边栏标题</h5>
    <p>内容</p>
</aside>

<p>请输入账号:&nbsp<input id="usename" type="text" name="usename" placeholder="请输入您的账号"></p>
<p>请输入密码:&nbsp<input type="password" style="text-align:center" name="usepassword"
                     placeholder="请输入密码"></p>
<form>
    性别:&nbsp<input type="radio" name="sex" value="男">男<input type="radio" name="sex" value="女">女</p>
</form>
<p>出生日期
    <select>
        <option>2001</option>
        <option>2002</option>
        <option>2003</option>
        <option>2004</option>
        <option>2005</option>
    </select>年
    <select>
        <option>1</option>
        <option>2</option>
        <option>3</option>
        <option>4</option>
        <option>5</option>
    </select>月
    <select>
        <option>10</option>
        <option>11</option>
        <option>12</option>
        <option>13</option>
        <option>14</option>
    </select>
</p>
<p>验证码:<input style="text;" align="left">
    <img id="yanzhengma" src="file:///android_asset/images/ic_launcher_round.png" width="50"
         height="50" border="0" alt="随便放个图"><a
            style="text-decoration:none" onclick="chpic()">看不清楚换一张</a></p>
<a href="" style="text-decoration:none">
    <button onclick="send()">提交</button>
</a>

<input type="button" value="注册页面" onclick="button()"/>

</body>
</html>